import { LAYOUT } from '@/store/keys'

export const asyncRoutes = [
  {
    path: '/home',
    component: LAYOUT,
    name: '首页',
    meta: {
      title: '首页',
      iconPrefix: 'iconfont',
    },
    children: [
      {
        path: '/home/index',
        name: '系统首页',
        component: (): any => import('@/views/home/home.vue'),
        meta: {
          title: '系统首页',
          // affix: true,
        },
      },
      {
        path: '/home/monitor',
        name: '系统监控',
        component: (): any => import('@/views/home/monitor.vue'),
        meta: {
          title: '系统监控',
        },
      },
      {
        path: '/home/update',
        name: '更新日志',
        component: (): any => import('@/views/home/update.vue'),
        meta: {
          title: '更新日志',
        },
      },
      {
        path: '/home/fee',
        name: '金额缴纳',
        component: (): any => import('@/views/home/fee.vue'),
        meta: {
          title: '金额缴纳',
        },
      },
      {
        path: '/home/announcement',
        name: '官方公告',
        component: (): any => import('@/views/home/announcement.vue'),
        meta: {
          title: '官方公告',
        },
      },
      {
        path: '/work-place',
        name: 'WorkPlace',
        component: (): any => import('@/views/index/work-place.vue'),
        meta: {
          title: '工作台',
        },
      },
    ],
  },
]
